package src.phase.one.gui;

import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Label;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;

public class ToolPanel extends JPanel {
	
    private static GridBagLayout L = new GridBagLayout();  
    private static GridBagConstraints c = new GridBagConstraints();	
	
	public JPanel getToolPanel(){

		JPanel panel = new JPanel();
		Border d = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
		Border d2 = BorderFactory.createLoweredBevelBorder();
		Border d3 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
		
		panel.setBackground(Color.LIGHT_GRAY);
		panel.setLayout(L);
		
		c.weightx = 0.0;
		c.gridwidth = GridBagConstraints.RELATIVE;
		JLabel L1 = new JLabel( "Sätze:" );
		L.setConstraints(L1, c);
		panel.add(L1);
		  
		 c.gridwidth = GridBagConstraints.REMAINDER;
		JLabel L2 = new JLabel( "% " );
		L.setConstraints(L2, c);
		panel.add(L2);
		
		c.weightx = 1.0;
		c.gridwidth = GridBagConstraints.RELATIVE;
		JLabel L3 = new JLabel( "Worte " );
		L.setConstraints(L3, c);
		panel.add(L3);
		  
		c.gridwidth = GridBagConstraints.REMAINDER;
		JLabel L4 = new JLabel( "% " );
		L.setConstraints(L4, c);
		panel.add(L4);
		
		
		c.weightx = 1.0;
		c.gridwidth = GridBagConstraints.RELATIVE;
		JLabel L5 = new JLabel( "Silben" );
		L.setConstraints(L5, c);
		panel.add(L5);
		  
		c.gridwidth = GridBagConstraints.REMAINDER;
		JLabel L6 = new JLabel( "% " );
		L.setConstraints(L6, c);
		panel.add(L6);
		
		c.weightx = 1.0;
		c.gridwidth = GridBagConstraints.RELATIVE;
		JLabel L10 = new JLabel( "Vokale " );
		L.setConstraints(L10, c);
		panel.add(L10);
		
		c.gridwidth = GridBagConstraints.REMAINDER;
		JLabel L7 = new JLabel( "% " );
		L.setConstraints(L7, c);
		panel.add(L7);
		
				
		c.weightx = 1.0;
		c.gridwidth = GridBagConstraints.RELATIVE;
		JLabel L8 = new JLabel( "Fehler" );
		L.setConstraints(L8, c);
		panel.add(L8);
		  
		c.gridwidth = GridBagConstraints.REMAINDER;
		JLabel L9 = new JLabel( "%" );
		L.setConstraints(L9, c);
		panel.add(L9);

		
		panel.setBorder(d3);
	
		
		return panel;
		
	}

}
